﻿using System;
using Autodesk.Revit.DB;

namespace YJKDimensionModel.PlaneSlopeDimension
{
	public class SlopeDimensionStruct
	{
		public double Length { get; set; }

		public double ArrowAngle { get; set; }

		public double ArrowLength { get; set; }

		public FamilySymbol FamilySymbol { get; set; }

		public string Name { get; set; }

		public string Font { get; set; }

		public double Offset { get; set; }

		public double TextHeight { get; set; }

		public double TextWidth { get; set; }

		public Family Family { get; set; }

		public string UpText { get; set; }

		public string DownText { get; set; }

		public SlopeDimensionStruct(FamilySymbol familySymbol, double arrowAngle = 0.0, double arrowLength = 0.0, string font = "仿宋", double offset = 0.0, double textHeight = 0.0, double textWidth = 0.0, double length = 8.0, string upText = "3%", string downText = "")
		{
			this.ArrowAngle = arrowAngle;
			this.ArrowLength = arrowLength;
			this.FamilySymbol = familySymbol;
			this.Family = familySymbol.Family;
			this.Name = familySymbol.Name;
			this.Font = font;
			this.Offset = offset;
			this.TextHeight = textHeight;
			this.TextWidth = textWidth;
			this.Length = length;
			this.UpText = downText;
			this.DownText = downText;
		}
	}
}
